package cardgame.demo.event;

/**
 * 识破卡牌事件
 */
public class ShiPoCardEvent extends CardEvent {
    /**
     * 要识破的卡牌
     */
    private CardEvent targetCardEvent;

    @Override
    void cardEffective() {
        targetCardEvent.available(false);
    }

    public ShiPoCardEvent() {
        this.cardName = "识破";
    }

    public CardEvent getTargetCardEvent() {
        return targetCardEvent;
    }

    public ShiPoCardEvent targetCardEvent(CardEvent targetCardEvent) {
        this.targetCardEvent = targetCardEvent;
        return this;
    }
}
